﻿using _8Group.MES.ISongService.ProWorkorder.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace _8Group.MES.ISongService.ProWorkorder
{
    public interface IProWorkorderService: IApplicationService
    {
        /// <summary>
        /// 获取所有工单
        /// </summary>
        /// <returns></returns>
        Task<object> GetProWorkorderAsync(RequestProWorkorderDTO workorderDTO);

        /// <summary>
        /// 删除工单
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<bool> DeleteProWorkorderAsync(int id);

        /// <summary>
        /// 添加工单
        /// </summary>
        /// <param name="workorderDTO"></param>
        /// <returns></returns>
        Task<bool> AddProWorkorderAsync(AddProWorkorderDTO workorderDTO);

        /// <summary>
        /// 更新工单
        /// </summary>
        /// <param name="workorderDTO"></param>
        /// <returns></returns>
        Task<bool> UpdateProWorkorderAsync(UpdateProWorkorderDTO workorderDTO);
    }
}
